set(ENV{PKG_CONFIG_PATH}  /var/fpwork/b2zhang/uphwapi/ut_build/cpputest-build/lib/pkgconfig)
find_package(PkgConfig)
pkg_search_module(example_test REQUIRED cpputest)
#pkg_search_module(example_test REQUIRED CppUTest)

message(STATUS "=== LIBRARIES: ${example_test_LIBRARIES}")
message(STATUS "=== INCLUDE_DIR: ${example_test_INCLUDE_DIRS}")

#find_package(CppUTest REQUIRED)

include_directories("../include"
    "${example_test_INCLUDE_DIRS}"
    )

LINK_DIRECTORIES(
    "example_test_LIBRARIES}"
    "/var/fpwork/b2zhang/uphwapi/ut_build/cpputest-build/lib"
    )

add_executable(example_test AllTest.cpp example_test.cpp)
target_link_libraries(example_test PRIVATE
    CppUTest
    CppUTestExt)

add_executable(code_test AllTest.cpp code_ut.cpp)
target_link_libraries(code_test PRIVATE
    CppUTest
    CppUTestExt)
